curl --request POST \
--url https://sandbox.paylias.xyz/gateway/api/v1/csp/payments \
--header 'Content-Type: application/json' \
--header 'X-PAYLIAS-API-KEY: <api-key>' \
--header 'idempotency-key: <idempotency-key>' \
--header 'x-org-id: <x-org-id>' \
--header 'x-partner-id: <x-partner-id>' \
--data '{
"payment_id": "cjes76vsemvj3obsnc52",
"amount": {
"currency": "USD",
"total": "10000"
},
"beneficiary_party": {
"payment_address": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"email": "john@example.com",
"phone": "+1234567890",
"type": "Payee_Individual",
"billing": {
"country": "US"
}
},
"debtor_party": {
"payment_address": "jane@example.com",
"first_name": "Jane",
"last_name": "Smith",
"email": "jane@example.com",
"phone": "+1987654321",
"type": "Payer_Individual",
"billing": {
"country": "US"
}
},
"reference": "INV001",
"payment_type": "Type_Pull"
}'
{
"ok": true,
"data": {
"amount": {
"currency": "USD",
"total": "10000"
},
"beneficiary_party": {
"payment_address": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"email": "john@example.com",
"phone": "+1234567890",
"type": "Payee_Individual",
"billing": {
"country": "US"
}
},
"debtor_party": {
"payment_address": "jane@example.com",
"first_name": "Jane",
"last_name": "Smith",
"email": "jane@example.com",
"phone": "+1987654321",
"type": "Payer_Individual",
"billing": {
"country": "US"
}
},
"device": {},
"location": {},
"expires_at": "2023-08-13T08:55:04Z",
"initiated_at": "2023-08-12T08:55:04Z",
"organization_id": "org_d09gv1s20or2svojjmt0",
"partner_id": "part_123456789",
"payment_id": "pay_123456789",
"reference": "INV001",
"payment_type": "Type_Pull"
}
}
Create Payment
curl --request POST \
--url https://sandbox.paylias.xyz/gateway/api/v1/csp/payments \
--header 'Content-Type: application/json' \
--header 'X-PAYLIAS-API-KEY: <api-key>' \
--header 'idempotency-key: <idempotency-key>' \
--header 'x-org-id: <x-org-id>' \
--header 'x-partner-id: <x-partner-id>' \
--data '{
"payment_id": "cjes76vsemvj3obsnc52",
"amount": {
"currency": "USD",
"total": "10000"
},
"beneficiary_party": {
"payment_address": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"email": "john@example.com",
"phone": "+1234567890",
"type": "Payee_Individual",
"billing": {
"country": "US"
}
},
"debtor_party": {
"payment_address": "jane@example.com",
"first_name": "Jane",
"last_name": "Smith",
"email": "jane@example.com",
"phone": "+1987654321",
"type": "Payer_Individual",
"billing": {
"country": "US"
}
},
"reference": "INV001",
"payment_type": "Type_Pull"
}'
{
"ok": true,
"data": {
"amount": {
"currency": "USD",
"total": "10000"
},
"beneficiary_party": {
"payment_address": "john@example.com",
"first_name": "John",
"last_name": "Doe",
"email": "john@example.com",
"phone": "+1234567890",
"type": "Payee_Individual",
"billing": {
"country": "US"
}
},
"debtor_party": {
"payment_address": "jane@example.com",
"first_name": "Jane",
"last_name": "Smith",
"email": "jane@example.com",
"phone": "+1987654321",
"type": "Payer_Individual",
"billing": {
"country": "US"
}
},
"device": {},
"location": {},
"expires_at": "2023-08-13T08:55:04Z",
"initiated_at": "2023-08-12T08:55:04Z",
"organization_id": "org_d09gv1s20or2svojjmt0",
"partner_id": "part_123456789",
"payment_id": "pay_123456789",
"reference": "INV001",
"payment_type": "Type_Pull"
}
}
The Organization ID header used for authorization
The Partner ID header used for authorization
The Idempotency Key - usually a UUID
Request to create a new payment
Response containing Payment information
Standard response structure for successful operations
Was this page helpful?