# Payment links

Section: Invoices and payments. Part of the [API reference](https://developer.yoprint.com/reference.md). Web page: https://developer.yoprint.com/reference/payment-links/

This page and all 7 operation pages, in one file: https://developer.yoprint.com/llms/payment-links.txt

A payment link records how payments received on a sales order are split across its invoices (the web app calls this a payment allocation). It is not a URL or payment page a customer opens to pay, and it moves no money.

## Operations (7)

- [Create a payment link for a sales order](https://developer.yoprint.com/reference/payment-links/v2-sales-order-payment-link-create.md): `POST /v2/api/store/{team_slug}/v2/sales_order/{hash_id}/payment_link`. A payment link (Allocations in the web app) records which invoices a payment pays: it splits payments received on the order across the order's invoices.
- [List the payment links of a sales order](https://developer.yoprint.com/reference/payment-links/v2-sales-order-payment-link-index.md): `GET /v2/api/store/{team_slug}/v2/sales_order/{hash_id}/payment_link`. A payment link (Allocations in the web app) records which invoices a payment pays: it splits payments received on the order across the order's invoices.
- [Show one payment link with allocations](https://developer.yoprint.com/reference/payment-links/v2-payment-link-show.md): `GET /v2/api/store/{team_slug}/v2/payment_link/{hash_id}`. A payment link records how payments already received on a sales order are split across its invoices (the web app calls this a payment allocation).
- [Get the starting point for editing a payment link](https://developer.yoprint.com/reference/payment-links/v2-payment-link-get-update-template.md): `GET /v2/api/store/{team_slug}/v2/payment_link/{hash_id}/get_update_template`. Returns what you need to build an Update a payment link body: the link with its `allocated_transactions` (`state` `existing`, each with its allocation `id`), plus `unallocated_transactions`: every…
- [Get what a new payment link can allocate](https://developer.yoprint.com/reference/payment-links/v2-sales-order-payment-link-get-create-template.md): `GET /v2/api/store/{team_slug}/v2/sales_order/{hash_id}/payment_link/get_create_template`. A payment link (Allocations in the web app) records which invoices a payment pays: it splits payments received on the order across the order's invoices.
- [Update a payment link](https://developer.yoprint.com/reference/payment-links/v2-payment-link-update.md): `PUT /v2/api/store/{team_slug}/v2/payment_link/{hash_id}`. A payment link records how payments already received on a sales order are split across its invoices (the web app calls this a payment allocation).
- [Delete a payment link](https://developer.yoprint.com/reference/payment-links/v2-payment-link-delete.md): `DELETE /v2/api/store/{team_slug}/v2/payment_link/{hash_id}`. Deletes a payment link and all its allocations.
