Links

A Link resource represents a one-time use link to receive a payment.

A Link resource represents a one-time use link to receive a payment.

More Details

/**
 * These are the required properties
 * @param {Object} data Data payload
 * @param {Object} data.attributes Payload attributes see full refence https://developers.paymongo.com/reference/links-resource#a-link-resource
 */
const result = await paymongo.links.create(data);
/**
 * @param {string} id The Link id
 */
const result = await paymongo.links.retrieve(id);
/**
 * @param {string} id The Link reference number
 */
const result = await paymongo.links.getByRef(reference_number);
/**
 * @param {string} id The Link id
 */
const result = await paymongo.links.archive(id);
/**
 * @param {string} id The Link id
 */
const result = await paymongo.links.unarchive(id);

Last updated