Invoice v1

All endpoints related to Invoices v1

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

getAllInvoices()

Usage
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

Usage


getOrderDeliverables()

Parameters
Type
Required
Description

id

string

✔️

ID of an invoices

Usage

createInvoice()

Parameters
Type
Required
Description

fields

object

✔️

Product's field

Usage

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.

Usage

createPayment()

Parameters
Type
Required
Description

id

string

✔️

Generates a payment session for the given ORDER ID.

Usage

Last updated