Create Account
Sign In
⌘
K
Moyasar Documentation
Payments
Credit Card
Apple Pay
STC Pay
Tokenization
Payment Errors
Form Configuration
Gateway Response Codes
Settlements
Invoices
Payouts
Mobile SDKs
E-Commerce Plugins
Testing
Testing Cards
Apple Pay Testing
Custom Payments
Dashboard
Apple Pay Using Developer Account
Apple Pay Using Web Registration
Get Your API Keys
Setting up your IP whitelist
Setting up Webhooks
API
API Introduction
Authentication
Pagination
Metadata
Payments
Payouts
Invoices
Tokens
Apple Pay
Webhooks
Transfers
Errors
Support
Help Desk
Docs powered by
Archbee
API
Payments
Fetch Payment
1min
To fetch an individual payment, you only need to provide the payment’s unique ID.
GET
Params
Path Params
id
required
String
ID of the payment to get
Curl
curl
-X
GET
\
-u
sk_your_key:
\
"https://api.moyasar.com/v1/payments/{id}"
curl -X GET \ -u sk_your_key: \ "https://api.moyasar.com/v1/payments/{id}"
Responses
200
404
{
"id"
:
"760878ec-d1d3-5f72-9056-191683f55872"
,
"status"
:
"paid"
,
"amount"
:
60000
,
"fee"
:
1580
,
"currency"
:
"SAR"
,
"refunded"
:
0
,
"refunded_at"
:
null
,
"captured"
:
0
,
"captured_at"
:
null
,
"voided_at"
:
null
,
"description"
:
null
,
"amount_format"
:
"600 SAR"
,
"fee_format"
:
"15.80 SAR"
,
"refunded_format"
:
"0.00 SAR"
,
"captured_format"
:
"0.00 SAR"
,
"invoice_id"
:
"9785ba96-a1be-5b13-a281-b27a4a6dad39"
,
"ip"
:
null
,
"callback_url"
:
null
,
"created_at"
:
"2016-05-11T17:04:17.000Z"
,
"updated_at"
:
"2016-05-12T17:04:19.633Z"
,
"metadata"
:
null
,
"source"
:
{
"type"
:
"creditcard"
,
"company"
:
"visa"
,
"name"
:
"Saleh Ali"
,
"number"
:
"XXXX-XXXX-XXXX-1111"
,
"message"
:
null
,
"transaction_url"
:
null
,
"gateway_id"
:
"moyasar_cc_ce1iUidxhrh74257S891wvW"
,
"reference_number"
:
"125478454231"
}
}
{ "id": "760878ec-d1d3-5f72-9056-191683f55872", "status": "paid", "amount": 60000, "fee": 1580, "currency": "SAR", "refunded": 0, "refunded_at": null, "captured": 0, "captured_at": null, "voided_at": null, "description": null, "amount_format": "600 SAR", "fee_format": "15.80 SAR", "refunded_format": "0.00 SAR", "captured_format": "0.00 SAR", "invoice_id": "9785ba96-a1be-5b13-a281-b27a4a6dad39", "ip": null, "callback_url": null, "created_at": "2016-05-11T17:04:17.000Z", "updated_at": "2016-05-12T17:04:19.633Z", "metadata": null, "source": { "type": "creditcard", "company": "visa", "name": "Saleh Ali", "number": "XXXX-XXXX-XXXX-1111", "message": null, "transaction_url": null, "gateway_id": "moyasar_cc_ce1iUidxhrh74257S891wvW", "reference_number": "125478454231" } }
Updated 18 Feb 2024
Did this page help you?
PREVIOUS
Update Payment
NEXT
List Payments
Docs powered by
Archbee
TABLE OF CONTENTS
GET
Fetch Payment
Docs powered by
Archbee