Get a payment link
One payment link with every payment made through it.
PartnerBasicAuthorizationBasic <token>HTTP Basic auth: your AppId as the username and your AppKey as the password. Sandbox and Live have separate credentials.
linkId*stringThe link's id.
uuidOK
- response
A payment link: a hosted page where a customer pays you by MTN MoMo.
id?stringThe link's id.
uuidcode?stringThe public code in the link's URL.
url?stringThe page to send your customer to.
environment?stringSandbox or Live.
title?stringWhat the customer pays for, shown on the page.
description?|More detail shown on the page, if any.
amount?|The amount to pay; null when the customer enters it.
doublecurrency?stringCurrency code, XAF.
reference?|Your own reference, if you set one.
singleUse?booleanWhether the link closes after its first successful payment.
status?stringOPEN, PAID (a single-use link that was paid), EXPIRED or DISABLED.
expiresAt?|When the link stops accepting payments; null for never.
date-timeredirectUrl?|Where the page sends the customer after paying, if set.
createdDate?stringWhen it was created (UTC).
date-timepaidCount?integerHow many payments succeeded through it.
int32paidTotal?numberTotal of the successful payments.
doublepayments?array<>The payments made through it, newest first (only when fetching one link).
curl -X GET 'https://gateway.staging.wallet2cash.com/api/v1/payment-links/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "code": "string", "url": "string", "environment": "string", "title": "string", "description": "string", "amount": 0, "currency": "string", "reference": "string", "singleUse": true, "status": "string", "expiresAt": "2019-08-24T14:15:22Z", "redirectUrl": "string", "createdDate": "2019-08-24T14:15:22Z", "paidCount": 0, "paidTotal": 0.1, "payments": [ { "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc", "partnerOrderId": "string", "msisdn": "string", "amount": 0.1, "status": "string", "failureCode": "string", "createdDate": "2019-08-24T14:15:22Z" } ]}Create a payment link
Creates a hosted payment page your customer pays on by MTN MoMo: send them the returned url (by SMS, WhatsApp, email, a QR code). Each payment is an ordinary MoMo deposit to your balance, with its own webhook; its partnerOrderId starts with pl-{code}-.
Disable a payment link
Its page stops accepting payments. Payments already made are not affected.
