6DOT50 APIs
  • Redemptions API
    • Overview
    • Process Flow
    • Requests
    • Response Models
    • Payment Codes
    • Authentication
      • POST /authentication/getToken
  • Accounts
    • GET /accounts
    • GET /accounts/{id}/transactions
  • Initiate Payment
    • POST /payments
  • User Payment Pages
    • Authentication
    • Payment Confirmation
    • Payment Status
  • Payment Status
    • GET /payments/{id}
  • List Payments
    • GET /payments
  • Support
  • PAY API
    • Overview
    • API Keys
    • Endpoints
    • Process Flow
    • Requests
    • Response Models
    • Authentication
      • POST /authentication/getToken
    • Accounts
      • GET /accounts
    • Batches
      • POST /batches
      • GET /batches
      • GET /batches/{id}
      • PUT /batches/{id}
      • GET /batches/statusCodes
      • POST /batches/{id}/payments
      • GET /batches/{id}/payments
      • POST /batches/{id}/submit
      • POST /batches/{id}/cancel
    • Members
      • GET /members/{msisdn}/exists
    • Payments
      • GET /payments/{id}
      • DELETE /payments/{id}
      • GET /payments/statusCodes
  • Support
Powered by GitBook
On this page
  • Request
  • Response
  1. Payment Status

GET /payments/{id}

PreviousPayment StatusNextList Payments

Last updated 2 years ago

Use this operation to query the status of a particular payment. It is typically used when the user is redirected back to your redirectUrl, so that you can decide how to handle the payment status during your check out process.

See to determine the status of the payment.

Request

Ensure the bearer token is included in the Header of the GET operation:

Header
Mandatory
Description

Authorization

Yes

Parameter
Mandatory
Description

id

Yes

The 6DOT50 unique Payment ID (paymentId) to query.

Response

If successful, the operation will return with a standard Payment model:

{
  "id": "string($guid)",
  "reference": "string",
  "amount": "string",
  "accountId": "string($guid)",
  "currencyCode": "string",
  "statusCode": int,
  "statusMessage": "string",
  "errorCode": int,
  "errorMessage": "string",
  "createdAt": "string($date-time)",
  "completedAt": " string($date-time)",
  "countryCode": "string",
  "returnUrl": "string"
}
Field
Response Type
Description

id

string($guid)

The unique Payment ID generated by 6DOT50 to be used in subsequent user redirects and method calls.

reference

string

Same value from Request.

amount

string

Same value from Request.

accountId

string($guid)

Same value from Request.

currencyCode

string

Same value from Request.

statusCode

int

statusMessage

string

errorCode

int

errorMessage

string

createdAt

string($date-time)

Time in UTC when the payment was created.

completedAt

string($date-time)

Time in UTC when the payment was completed (final state).

Sample Response
{
  "id": "009c3481-a65c-4afa-a950-1f5bce710493",
  "reference": "ref12345678",
  "amount": "10000",
  "accountId": "00000000-0000-0000-0000-00000000000",
  "currencyCode": "DZAR",
  "statusCode": 0,
  "statusMessage": "Payment is in progress",
  "errorCode": 0,
  "createdAt": "2022-09-26T11:40:47.33",
  "countryCode": "ZA",
  "returnUrl": "https://redirect.merchant.com"
}

Bearer token from

Status code for the transaction. See for more information.

A display message for the status code. See for messages.

Error code for the transaction if it failed to create. See for more information

A display message for the error code. See for messages.

/authentication/getToken
Payment Status Codes
Payment Status Codes
Payment Status Codes
Payment Error Codes
Payment Error Codes