Base URL
Authentication
Generate your server code from https://www.linkrunner.io/settings?s=data-apis In the request header add the below attribute:Capture payment
Request Body
type
and payment_id
. For each unique combination of payment type and payment ID, only one record will be created. If you send multiple requests with the same type
and payment_id
combination, only the first will be recorded and subsequent ones will be ignored. To ensure proper deduplication, always provide a unique payment_id
for each transaction of a given type.
Payment types
- FIRST_PAYMENT: User’s first payment
- SECOND_PAYMENT: User’s second payment
- WALLET_TOPUP: Adding funds to a wallet
- FUNDS_WITHDRAWAL: Withdrawing funds
- SUBSCRIPTION_CREATED: Subscription started
- SUBSCRIPTION_RENEWED: Subscription renewed
- ONE_TIME: One-time payment
- RECURRING: Recurring payment
- DEFAULT: Generic/unspecified payment type
type
is omitted, it defaults to DEFAULT.
Payment status
- PAYMENT_INITIATED: Payment has been initiated
- PAYMENT_COMPLETED: Payment completed successfully
- PAYMENT_FAILED: Payment attempt failed
- PAYMENT_CANCELLED: Payment was cancelled
status
is omitted, it defaults to PAYMENT_COMPLETED.
Responses
- 201 Payment captured
- 401 Invalid server key
Remove captured payment
Request Body
user_id
or payment_id
is required in order to remove a payment entry. If you pass user_id
, all the payments attributed to that user will be removed!
Responses
- 200 Payment entry/entries deleted
- 400 No payment found with the given payment id or user id
- 401 Invalid server key