Skip to main content
POST
/
v1
/
partner
/
payments
Create a payment
curl --request POST \
  --url https://sandbox.api.acountpay.com/v1/partner/payments \
  --header 'Content-Type: application/json' \
  --header 'X-Partner-Client-Id: <api-key>' \
  --header 'X-Partner-Client-Secret: <api-key>' \
  --data '
{
  "merchantClientId": "a1b2c3d4-e5f6-7890-abcd-1234567890ab",
  "amount": 149.5,
  "referenceNumber": "ORDER-123",
  "description": "Table 5 - 2 items",
  "currency": "DKK",
  "storeId": "loc_abc123",
  "registerId": "REG-001"
}
'
{
  "paymentId": 456,
  "paymentUrl": "https://pay.acountpay.com/p/abc123",
  "referenceNumber": "ORDER-123",
  "status": "pending"
}

Authorizations

X-Partner-Client-Id
string
header
required

Your partner client ID

X-Partner-Client-Secret
string
header
required

Your partner client secret

Body

application/json
merchantClientId
string
required

The merchant's clientId (UUID)

Example:

"a1b2c3d4-e5f6-7890-abcd-1234567890ab"

amount
number
required

Payment amount

Required range: x >= 0.01
Example:

149.5

referenceNumber
string
required

Reference number (should match the POS order reference)

Example:

"ORDER-123"

description
string

Payment description

Example:

"Table 5 - 2 items"

currency
string
default:DKK

Currency (default DKK)

Example:

"DKK"

storeId
string

Store ID to attribute this payment to a specific store

Example:

"loc_abc123"

registerId
string

Register ID within the store

Example:

"REG-001"

Response

Payment created with QR URL

paymentId
number
Example:

456

paymentUrl
string

URL to present as QR code for customer to scan

Example:

"https://pay.acountpay.com/p/abc123"

referenceNumber
string
Example:

"ORDER-123"

status
string
Example:

"pending"