Skip to main content
POST
/
payment
/
pay-with-token
cURL
curl --request POST \
  --url https://gateway.7exchange.io/ipg/1.0.0/payment/pay-with-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'organizationId: <organizationid>' \
  --header 'tenantId: <tenantid>' \
  --header 'walletId: <walletid>' \
  --data '{
  "organizationId": "<string>",
  "registrationId": "<string>",
  "merchantTransactionId": "<string>",
  "amount": 123,
  "currency": "<string>",
  "cardCvv": "<string>",
  "terminalId": "<string>",
  "destinationId": "<string>",
  "merchantRedirectUrl": "<string>",
  "orderType": "<string>",
  "sourceId": "<string>",
  "createdBy": "<string>",
  "customerId": "<string>"
}'
{
  "reason": "<string>",
  "path": "<string>",
  "method": "<string>",
  "message": "<string>",
  "timestamp": "<string>",
  "status": 123
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

organizationId
string
required
walletId
string
required
tenantId
string
required

Body

application/json
amount
number
required
currency
string
required
organizationId
string | null
registrationId
string | null
merchantTransactionId
string | null
cardCvv
string | null
terminalId
string | null
destinationId
string | null
merchantRedirectUrl
string | null
orderType
string | null
sourceId
string | null
createdBy
string | null
customerId
string | null

Response

Internal server error

reason
string

Reason phrase

path
string

Request path

method
string

Method type of the request

message
string

Error message

timestamp
string

Timestamp of the error

status
integer

Relevant HTTP status code