PUT
/
api
/
v1
/
csp
/
payments
/
{payment_id}
/
admissions
/
{admission_id}
/
tasks
/
{task_id}
Update Payment Admission Task
curl --request PUT \
  --url https://sandbox.paylias.xyz/gateway/api/v1/csp/payments/{payment_id}/admissions/{admission_id}/tasks/{task_id} \
  --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 '{
  "status": "completed",
  "status_reason": "accepted"
}'
{
  "ok": true,
  "data": {
    "admission_id": "pay_adm_cvk3rfk20or8munut3v0",
    "assignee": 1,
    "status": 1,
    "status_reason": 1,
    "created_on": 1743273406,
    "modified_on": 1743273406,
    "name": "customer_authentication",
    "organization_id": "org_ct239n420or249k5bo90",
    "partner_id": "part_ct23b6420or249k5boag",
    "payment_id": "cjes76vsemvj3obsnc53",
    "token": "pat_cvk3rfk20or8munut400",
    "workflow": "customer_authentication"
  }
}

Authorizations

X-PAYLIAS-API-KEY
string
header
required

Headers

x-org-id
string
default:""
required

The Organization ID header used for authorization

x-partner-id
string
default:""
required

The Partner ID header used for authorization

idempotency-key
string
default:""
required

The Idempotency Key - usually a UUID

Path Parameters

payment_id
string
required

The unique identifier for the payment

Example:

"pay_123456789"

admission_id
string
required

The unique identifier for the admission

Example:

"adm_ct23b6420or249k5boag"

task_id
string
required

The unique identifier for the task

Example:

"task_ct23c1420or249k5bocg"

Body

application/json

Request to update the status of a payment admission task

The body is of type object.

Response

200
application/json

Response containing a payment admission task

Standard response structure for successful operations