curl --request POST \
--url 'https://api.stateset.com/api/v1/ap/payments' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"allocations": [
{
"amount": "49.00",
"bill_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"amount": "49.00",
"bank_account": "string",
"check_number": "string",
"memo": "string",
"payment_method": "card",
"reference_number": "string",
"supplier_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
{
"amount": "49.00",
"created_at": "2026-08-31T14:22:05Z",
"currency": "USD",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payment_method": "card",
"payment_number": "string",
"status": "pending",
"supplier_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Ap create payment
Ap create payment
POST
/
api
/
v1
/
ap
/
payments
curl --request POST \
--url 'https://api.stateset.com/api/v1/ap/payments' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"allocations": [
{
"amount": "49.00",
"bill_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"amount": "49.00",
"bank_account": "string",
"check_number": "string",
"memo": "string",
"payment_method": "card",
"reference_number": "string",
"supplier_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
{
"amount": "49.00",
"created_at": "2026-08-31T14:22:05Z",
"currency": "USD",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payment_method": "card",
"payment_number": "string",
"status": "pending",
"supplier_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Request body
CreateApPaymentRequest
ApPaymentAllocationRequest[]
string
required
Decimal amount as a string.
string,null
string,null
string,null
string
required
One of
check, ach, wire, credit_card, cash, other.string,null
string
required
Response
ApPaymentResponse
string
required
string
required
string
required
string
required
string
required
string
required
string
required
string
required
Status codes
| Code | Meaning |
|---|---|
201 | — |
400 | — |
422 | Idempotency-Key reused with a different body |
428 | Idempotency-Key header required on this endpoint (configurable) |
curl --request POST \
--url 'https://api.stateset.com/api/v1/ap/payments' \
--header "Authorization: Bearer $STATESET_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"allocations": [
{
"amount": "49.00",
"bill_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"amount": "49.00",
"bank_account": "string",
"check_number": "string",
"memo": "string",
"payment_method": "card",
"reference_number": "string",
"supplier_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
{
"amount": "49.00",
"created_at": "2026-08-31T14:22:05Z",
"currency": "USD",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payment_method": "card",
"payment_number": "string",
"status": "pending",
"supplier_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Last modified on August 31, 2026