Invoice v1

All endpoints related to Invoices v1

circle-exclamation
triangle-exclamation

Supported Endpoints

  • getAllInvoices(): Returns a list of all the listings created.

  • getInvoice(id): Retrieves a listing by the entered ID.

  • getOrderDeliverables(id): Creates a listing and returns the created listing.

  • createInvoice(fields): Updates a listing by the entered ID.

  • issueReplacement(id, fields): Deletes a listing by the entered ID.

  • createPayment(id): Generates a payment session for the given order.


Invoices v1

circle-exclamation
triangle-exclamation

getAllInvoices()

chevron-rightUsagehashtag
const Sellapp = require("sellapp-node");
const API = new Sellapp.API("YOUR_API_KEY");

API.invoicesv1.getAllInvoices().then((res) => {
    console.log(res)
});

getInvoice()

Type
Required
Description

id

string

✔️

ID of an invoice

chevron-rightUsagehashtag


getOrderDeliverables()

Parameters
Type
Required
Description

id

string

✔️

ID of an invoices

chevron-rightUsagehashtag

createInvoice()

Parameters
Type
Required
Description

fields

object

✔️

Product's field

chevron-rightUsagehashtag

issueReplacement()

Parameters
Type
Required
Description

id

string

✔️

ID of the order you want to issue a replacement

fields

array

The listings that should be replaced. If no listings are provided, all listings will be replaced.

chevron-rightUsagehashtag

createPayment()

Parameters
Type
Required
Description

id

string

✔️

Generates a payment session for the given ORDER ID.

chevron-rightUsagehashtag

Last updated