v1
latestOpenAPI 3.0.02026-08-06363576.8 KBPayment
Create a payment
Create a single payment in Áskell. Requires a secret key. A payment is executed asynchronously which means that you will have to rely on checking the status of the payment after creating it, or rely on webhooks. You can check the status of the payment using the uuid supplied when the payment is initially created.
Initially, the payment will have the state 'pending'. If the payment is successful, the state will be 'settled'. If the payment fails, the state will be 'failed'. If you decide to retry the payment, the payment might have the state 'retrying'.
To summarize, the four states are:
- pending
- settled
- failed
- retrying
post/payments/
Request body
Example request
{
"customer_reference": "12345",
"amount": "100.00",
"currency": "USD",
"payment_options": {
"payment_processor": "claim",
"claimtemplate": 1,
"claimrule": 1,
"payment_date": "2025-11-01",
"payor_id": "1234567890 (must be a valid Icelandic kennitala)"
}
}Response
Successful operation
Example response
{
"amount": "100.00",
"currency": "USD",
"state": "pending",
"transactions": [
{
"amount": "6.99",
"currency": "USD"
}
]
}