curl --request POST \
--url https://sandbox.api.paylias.xyz/gateway/api/v1/csp/customer \
--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 '
{
"type": "Individual",
"first_name": "Sean",
"last_name": "Combs",
"middle_name": "",
"email": "seancombs@gmail.com",
"payment_address": "sean@safepay",
"status": "ENABLED"
}
'
{
"data": {
"created_at": {
"seconds": 1743092228
},
"first_name": "Ziyad",
"last_name": "Parekh",
"nick_name": "ziyad",
"partner_id": "part_ct23b6420or249k5boag",
"payment_address": "ziyadparekh@safepay-platinum",
"status": 2,
"token": "cust_cvink1420or763mhjesg",
"updated_at": {
"seconds": 1743092228
}
},
"ok": true
}{
"code": "error.bad_request",
"message": "Invalid request parameters"
}{
"code": "error.unauthorized",
"message": "Authentication required"
}{
"code": "error.conflict",
"message": "Resource already exists"
}Customers
Create Customer
Create Customer
POST
/
api
/
v1
/
csp
/
customer
curl --request POST \
--url https://sandbox.api.paylias.xyz/gateway/api/v1/csp/customer \
--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 '
{
"type": "Individual",
"first_name": "Sean",
"last_name": "Combs",
"middle_name": "",
"email": "seancombs@gmail.com",
"payment_address": "sean@safepay",
"status": "ENABLED"
}
'
{
"data": {
"created_at": {
"seconds": 1743092228
},
"first_name": "Ziyad",
"last_name": "Parekh",
"nick_name": "ziyad",
"partner_id": "part_ct23b6420or249k5boag",
"payment_address": "ziyadparekh@safepay-platinum",
"status": 2,
"token": "cust_cvink1420or763mhjesg",
"updated_at": {
"seconds": 1743092228
}
},
"ok": true
}{
"code": "error.bad_request",
"message": "Invalid request parameters"
}{
"code": "error.unauthorized",
"message": "Authentication required"
}{
"code": "error.conflict",
"message": "Resource already exists"
}Headers
Body
application/json
Request to create a new customer
Was this page helpful?