Skip to content

Latest commit

 

History

History
101 lines (72 loc) · 1.45 KB

File metadata and controls

101 lines (72 loc) · 1.45 KB

Order

A collection of endpoints for creating and managing orders

Methods

Method HTTP Path Summary
create POST /order Create Order
fetch GET /order/{id} Fetch Order
list GET /order List Orders
product GET /order/product/{id} Fetch Product Orders
validate GET /order/{code}/validate Validate Order

create

HTTP: POST
Path: /order

paystack.order.create({ ... })

Body Fields

Name Required
email true
first_name true
last_name true
phone true
currency true
items true
shipping true
is_gift false
pay_for_me false

fetch

HTTP: GET
Path: /order/{id}

paystack.order.fetch(id)

Path Parameters

Name Required
id true

list

HTTP: GET
Path: /order

paystack.order.list({ ... })

Query Fields

Name Required
perPage false
page false
from false
to false

product

HTTP: GET
Path: /order/product/{id}

paystack.order.product(id)

Path Parameters

Name Required
id true

validate

HTTP: GET
Path: /order/{code}/validate

paystack.order.validate(code)

Path Parameters

Name Required
code true