Shared
Payment
Update Payment

Update Payment Amount

Updates the payment amount for an order.

Overview

  • Method: POST
  • Path: /shared/payment/update-payment/<orderId>
  • Tags: shared

Parameters

orderId (path)

  • Type: string
  • Required: Yes
  • Description: orderId parameter

Request Body

  • Content Type: application/json
  • Required: Yes

Fields

FieldTypeRequiredDetails
amountintegerYes

Responses

200

Successful response

Content Type: application/json

{
  "payment": "string",
  "order_id": "string",
  "amount": 123,
  "currency_code": "string",
  "created_at": "string",
  "updated_at": "string"
}

400

Bad Request

Content Type: application/json

{
  "error": "string",
  "details": [
    {}
  ]
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X POST \
  https://api.pillexa.com/shared/payment/update-payment/<orderId> \
  -H "Content-Type: application/json" \
  -d '{"example": "data"}'