Website logo
Create AccountSign In
⌘K
Moyasar Documentation
Payments
Credit Card
Apple Pay
STC Pay
Tokenization
Payment Errors
Form Configuration
Payouts
Invoices
Creating invoices
Mobile SDKs
iOS SDK
Android SDK
Flutter SDK
Hosted Checkout
E-Commerce Plugins
WooCommerce
PrestaShop
NopCommerce
OpenCart
Magento2
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
Introduction
Authentication
Pagination
Metadata
Payments
Payouts
Invoices
Tokens
Apple Pay
Webhooks
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
Params
Path Params
id
required
String
The invoices unique ID
Curl
curl -X GET \
     -u sk_your_key: \
     "https://api.moyasar.com/v1/invoices/73bda482-5f95-4f59-87d3-3fe3615c54bc"
Responses
200
404
{
  "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 23 Nov 2023
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