PPylon Developers
ApiPayments

Apply store credit

Applies store credits to a payment session, reducing the amount due.

POST
/api/v1/payments/sessions/{id}/apply-credit
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/problem+json

curl -X POST "https://loading/api/v1/payments/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/apply-credit" \  -H "Content-Type: application/json" \  -d '{    "creditIds": [      "109687e4-fe6e-403a-8f14-ce6ad5b94b5c"    ]  }'
{
  "appliedAmount": 0.1,
  "newNetAmount": 0.1
}
{
  "code": "string",
  "message": "string"
}
{
  "code": "string",
  "message": "string"
}