Create Account
Sign In
⌘
K
Moyasar Documentation
Payments
Credit Card
Apple Pay
STC Pay
Tokenization
Payment Errors
Form Configuration
Gateway Response Codes
Settlements
Settlement Introduction
File Format
Using API
Settlement Notification
Facilitation Merchants
Invoices
Creating invoices
Payouts
Payout Introduction
Single Payout
Bulk Payouts
Testing Payouts
Mobile SDKs
iOS SDK
Android SDK
Flutter SDK
Hosted Checkout
E-Commerce Plugins
WooCommerce
PrestaShop
NopCommerce
OpenCart
Magento2
Marketing
Coupons
Testing
Testing Cards
Apple Pay Testing
Custom Payments
Credit Cards
STC Pay
Apple Pay on Websites
Apple Pay on Apps
Tokenized Cards
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
Create Payment
Payment Object
Payment Status Reference
Credit Card Source
Apple Pay Source
STC Pay Source
Update Payment
Fetch Payment
List Payments
Void Payment
Refund Payment
Capture a Payment
Manual Payments
3D Secure
Payouts
Invoices
Tokens
Apple Pay
Webhooks
Transfers
Errors
Support
Help Desk
Docs powered by
Archbee
API
Invoices
Fetch Invoice
1min
To fetch an individual invoice, you only need to provide the invoice’s unique ID.
GET
Request
Path Params
id
required
String
The invoices unique ID
Curl
1
curl
-X
GET
\
2
-u
sk_your_key:
\
3
"https://api.moyasar.com/v1/invoices/73bda482-5f95-4f59-87d3-3fe3615c54bc"
curl -X GET \ -u sk_your_key: \ "https://api.moyasar.com/v1/invoices/73bda482-5f95-4f59-87d3-3fe3615c54bc"
Responses
200
404
1
{
2
"id"
:
"73bda482-5f95-4f59-87d3-3fe3615c54bc"
,
3
"status"
:
"initiated"
,
4
"amount"
:
6091
,
5
"currency"
:
"SAR"
,
6
"description"
:
"Order #123126"
,
7
"logo_url"
:
"https://s3-eu-west-1.amazonaws.com/moyasar.api.assets.prod/entities/logos/default.png"
,
8
"amount_format"
:
"60.91 SAR"
,
9
"url"
:
"https://checkout.moyasar.com/invoices/73bda482-5f95-4f59-87d3-3fe3615c54bc?lang=en"
,
10
"callback_url"
:
"https://mystore.com/notify-paid"
,
11
"expired_at"
:
null
,
12
"created_at"
:
"2023-08-23T11:21:15.690Z"
,
13
"updated_at"
:
"2023-08-23T11:21:15.690Z"
,
14
"back_url"
:
null
,
15
"success_url"
:
null
,
16
"metadata"
:
null
,
17
"payments"
:
[
]
18
}
{ "id": "73bda482-5f95-4f59-87d3-3fe3615c54bc", "status": "initiated", "amount": 6091, "currency": "SAR", "description": "Order #123126", "logo_url": "https://s3-eu-west-1.amazonaws.com/moyasar.api.assets.prod/entities/logos/default.png", "amount_format": "60.91 SAR", "url": "https://checkout.moyasar.com/invoices/73bda482-5f95-4f59-87d3-3fe3615c54bc?lang=en", "callback_url": "https://mystore.com/notify-paid", "expired_at": null, "created_at": "2023-08-23T11:21:15.690Z", "updated_at": "2023-08-23T11:21:15.690Z", "back_url": null, "success_url": null, "metadata": null, "payments": [] }
Updated 11 Feb 2024
Did this page help you?
PREVIOUS
List Invoices
NEXT
Update Invoice
Docs powered by
Archbee
TABLE OF CONTENTS
GET
Fetch Invoice
Docs powered by
Archbee