Expire a Payment Transaction
Endpoints
Expire a Payment Transaction
Expire a payment link to prevent further payments.
POST
Expire a Payment Transaction
Endpoint
POST /expire-pay
Expire a payment link to prevent further payments.
Only transactions that were created with the initiate-pay endpoint can be expired.
Parameters
| Name | Required | Type | Description |
|---|---|---|---|
| transId | Yes | string | ID of the transaction to expire |
Response
- Returns details of the expired transaction if successful.
- Returns
400 Bad Requestwith message"Link already expired"if the transaction was already expired.
Body
application/json
Transaction ID to expire.
Response
Payment link expired successfully
Transaction ID of the payment.
Transaction status
Available options:
CREATED, PENDING, SUCCESSFUL, FAILED, EXPIRED Payment method
Available options:
mobile money, orange money, fapshi Name of the service in use
Type of transaction
Available options:
Collection, Payout Transaction amount
Amount received when Fapshi fees have been deducted
Client name
Client email
URL to redirect after payment
The transaction ID on your application
ID of the client on your application
The webhook you defined for your service
Typically appears when a payout via fapshi fails
Transaction ID with the payment operator
Date when the payment was initiated
Date when the payment was made