1. Invoice
Storyous Public APIs
  • Introduction
  • Merchants API
    • Get merchant and all its places
  • Menu API
    • Get a menu tree
    • Get time-based menu
    • Get Remaining amounts of time-based menu
  • Bills API
    • Get list of payment bills
    • Get detail of a payment bill
  • Delivery API
    • Create an order through delivery API
    • Get status of delivery order
  • Deskview API
    • Get list of desks
    • Get list of sections
    • Get desk view of a place
  • Features API
    • Get list of merchants/places with a feature
  • Hotel accounts integration API
    • Provide list of accounts
    • Write consumed items to hotel account
  • Stocks API
    • Get list of stocks
    • Get list of items
    • Get list of stock ups
    • Get detail of stock up
    • Create new stock up
    • Modify stock up
    • Delete stock up
    • Get list of stock takings
    • Get detail of stock taking
    • Create new stock taking
    • Modify stock taking
    • Delete stock taking
    • Get suppliers
  • Loyalty API
    • Introduction
    • Prepayment
    • Item refunds with credit
    • Get benefit offer
    • Report offer validation error
    • Report benefit usage
    • Get loyalty benefit usages
    • Mark benefit usages as synchronized
  • DataSync
    • Webhook receiving endpoint
      • Receive new or updated records
    • Data domains
      • Stock management
        • Stocks domain
        • StockItemCategories domain
        • StockItems domain
        • StockMovements domain
      • Sales and costs
        • Bills domain
        • BillCosts domain
        • TerminalTransactions domain
        • PaymentTypes domain
        • Loyalty domain
      • Desks
        • DeskSections domain
        • Desks domain
      • Menu
        • ItemCategories domain
        • Items domain
        • PlaceITems domain
      • Merchants
        • Merchants domain
        • Places domain
        • Persons domain
  • Billing-service API AI generated
    • IS Webhooks
      • Sync merchant
      • Sync merchant agreement
      • Sync place
      • Sync product (device/hardware assignment)
      • Sync merchant-level feature
      • Sync place-level feature
      • Sync order (HW order)
    • Billing Info
      • Get merchant billing info
      • Update merchant billing info
      • Get place billing info
    • Invoice
      • Check invoice payability
        POST
      • Pay invoice
        POST
      • Get hosted payment source page URL
        GET
    • Chargebee Webhook
      • Receive Chargebee event
    • Public
      • Download invoice or quote PDF
      • Quote payment page
    • Service
      • Health check
      • Prometheus metrics
      • MongoDash task dashboard
  • Schemas
    • Schemas
      • Loyalty api
        • BalanceBenefitOfferRequest
        • ThirdPartyLoyaltyOfferRequest
        • LoyaltyOfferValidationError
        • LoyaltyBenefitUsagesPayload
        • BenefitInput
        • PaidItem
        • Applied Benefits
        • PaymentByBalance
        • UsedBalance
        • LoyaltyOfferResponse
        • MenuProductDefinition
        • UsedGeneralDiscount
        • Prepayment
      • Desk
      • Section
    • OkResponse
    • StateInterval
    • PlaceStateInterval
    • Error
    • AssignInterval
    • ActiveInterval
    • RentalFee
    • InvoiceLine
    • ShortTermRental
    • Terminal
    • MerchantPricing
    • PlacePricing
    • PayInvoiceResponse
    • ValidationError
  1. Invoice

Pay invoice

POST
https://api.storyous.com/merchants/{merchantId}/invoices/{invoiceId}/pay
Triggers payment of an invoice via the stored Chargebee payment method.

Request

Authorization
API Key
Add parameter in header
x-permissions
Example:
x-permissions: ********************
or
Path Params

Responses

🟢200
application/json
Payment successful
Body

🟢202
🟠400
🟠422
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.storyous.com/merchants//invoices//pay' \
--header 'x-permissions: <api-key>'
Response Response Example
200 - Example 1
{
    "status": "success",
    "reasonKey": "payment_failed_generic"
}
Previous
Check invoice payability
Next
Get hosted payment source page URL
Built with