POST
/
payments
Create Payment Transaction
curl --request POST \
  --url https://api.dompetx.com/v1/payments \
  --header 'Content-Type: application/json' \
  --header 'X-DOMPAY-API-Key: <api-key>' \
  --header 'X-DOMPAY-Signature: <api-key>' \
  --header 'X-DOMPAY-Timestamp: <api-key>' \
  --data '
{
  "method": "QRIS",
  "amount": 5000,
  "currency": "IDR",
  "reference": "ORDER123456",
  "settlementSpeed": "standard",
  "metadata": {}
}
'
{
  "id": "<string>",
  "status": "<string>",
  "amount": 123,
  "currency": "<string>"
}

Authorizations

X-DOMPAY-API-Key
string
header
required
X-DOMPAY-Signature
string
header
required
X-DOMPAY-Timestamp
string
header
required

Body

application/json
method
string
required
Example:

"QRIS"

amount
number
required
Example:

5000

currency
string
required
Example:

"IDR"

reference
string
required
Example:

"ORDER123456"

settlementSpeed
string
Example:

"standard"

metadata
object

Response

200 - application/json

Payment created successfully

id
string
status
string
amount
number
currency
string