Get payment actions

Find out all you need to know about history of a payment. This API provides details about each step of the payment lifecycle.

The request

Use the details below to set up your request. In the URI, replace {id} with the payment_id.

Endpoints

Live

GET https://api.checkout.com/payments/{id}/actions

Sandbox

GET https://api.sandbox.checkout.com/payments/{id}/actions

Header and path parameters

HeaderValue
AuthorizationRequired

secret key

Use the valid secret key of your Checkout.com account. You can find this in the Hub.

Content-Type\ Requiredapplication/json
PathValue
idRequiredThe payment ID, embedded within the URI.

The response

If all went to plan, your request should return a list of data relating to the payment.

[
  {
    "id": "act_gefycn3jcvuupboxfmqrhk2aym",
    "type": "Refund",
    "processed_on": "2018-01-20T10:30:48Z",
    "amount": 6540,
    "approved": true,
    "response_code": "10000",
    "response_summary": "Approved",
    "_links": {
      "response-code": {
        "href": "https://api.checkout.com/refs/response-codes/10000"
      }
    }
  },
  {
    "id": "act_gefycn3jcvuupboxfmqrhk2aym",
    "type": "Capture",
    "processed_on": "2018-01-17T10:30:48Z",
    "amount": 6540,
    "approved": true,
    "response_code": "10000",
    "response_summary": "Approved",
    "metadata": {
      "shipping_ref": "MQIBN2"
    },
    "_links": {
      "response-code": {
        "href": "https://api.checkout.com/refs/response-codes/10000"
      }
    }
  },
  {
    "id": "act_y3oqhf46pyzuxjbcn2giaqnb44",
    "type": "Authorization",
    "processed_on": "2018-01-17T09:30:48Z",
    "amount": 6540,
    "approved": true,
    "auth_code": "643381",
    "response_code": "10000",
    "response_summary": "Approved",
    "reference": "ORD-5023-4E89",
    "_links": {
      "response-code": {
        "href": "https://api.checkout.com/refs/response-codes/10000"
      }
    }
  }
]

Possible error response(s):

  • 404 - Payment not found

Response parameters

Find out what the different fields in your successful response mean.

Field nameDescription
idStringThe unique identifier of the payment action.
type\ StringThe type of payment action (e.g., Authorization).
processed_on\ StringThe date and time the action took place.
amount\ IntegerThe action amount.
auth_code\ StringThe acquirer's authorization code for cards.
response_code\ StringThe gateway response code.
response_summary\ StringThe gateway response summary.
reference\ StringYour defined reference for the action.
metadata\ ObjectA set of key/value pairs that you can attach to an action.
_links\ ObjectThe links related to the action.

Payment actions

The table below outlines the different payment actions and their meanings.

AuthorizationThe payment request was sent successfully.
CaptureThe authorized payment was captured in full.
Refund Part or all of the captured amount was refunded.
VoidThe payment was voided and never captured; the funds were returned to the customer.
Card VerificationThe card verification request has been approved and the cardholder’s details have been saved to their account.
PayoutThe card payout was processed successfully.

Can we help?

Thanks for using Checkout.com. If you need any help or support, then message our support team at [email protected].