curl --request GET \
--url https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"purchase_id": "<string>",
"vendor_id": "<string>",
"vendor_credit_payment_id": "<string>",
"payment_method": "<string>",
"cash_register_id": "<string>",
"money_account_id": "<string>",
"amount": 123,
"discount_received": 123,
"paid_at": "2023-11-07T05:31:56Z",
"currency_code": "<string>",
"currency_exponent": 123,
"reference": "<string>",
"purchase": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}View a purchase payment
Shows one payment made for a purchase.
curl --request GET \
--url https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.exowpee.com/v1/catalog/purchases/{purchase}/payments/{payment}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"purchase_id": "<string>",
"vendor_id": "<string>",
"vendor_credit_payment_id": "<string>",
"payment_method": "<string>",
"cash_register_id": "<string>",
"money_account_id": "<string>",
"amount": 123,
"discount_received": 123,
"paid_at": "2023-11-07T05:31:56Z",
"currency_code": "<string>",
"currency_exponent": 123,
"reference": "<string>",
"purchase": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}purchases.retrieve, purchase_payments.retrieve
Part of Pay suppliers and adjust debt.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Identifier of the purchase (27-character KSUID).
Identifier of the purchase payment, which must belong to the purchase in the path (27-character KSUID string).
Query Parameters
Response mode. Default resource; none answers 204 No Content.
resource Comma-separated JSON keys of the root resource (id is always rendered). Available: id, purchase_id, vendor_id, vendor_credit_payment_id, payment_method, cash_register_id, money_account_id, amount, discount_received, paid_at, currency_code, currency_exponent, reference, created_at, updated_at.
Comma-separated include paths, each optionally followed by its fields in parentheses: units(id,sku),units.uomUnit(id,name). Max depth 6, max 40 paths. Available: purchase, purchase.items, purchase.debtAdjustments, purchase.returns, purchase.pickups, purchase.deliveries, purchase.vendor.
Response
Resource.
Identifier of the purchase payment (27-character KSUID string).
Identifier of the purchase that was paid.
Identifier of the supplier, copied from the purchase.
Identifier of the supplier payment this payment is a share of; null for a payment made directly on the purchase.
How the payment was made. Only cash is accepted today.
Identifier of the cash register the money came from.
Identifier of the money account used. Always null for payments made through the API today, which only accept cash registers.
Amount paid to the supplier in major units (the minor-unit amount divided by 10 to the power currency_exponent), using the payment's own currency_exponent.
Settlement discount granted by the supplier with this payment in major units (the minor-unit amount divided by 10 to the power currency_exponent); it reduces the debt like a payment but is not cash. 0 when none.
Date and time of the payment (ISO 8601). Set by the server.
Three-letter currency code of the payment (the company currency).
Number of decimal places of the currency (0 for XOF). An amount in minor units divided by 10 to this power gives the amount in the currency.
Free reference supplied with the payment, for example a receipt number.
The paid purchase. Present only when requested with include=purchase.
Date and time the record was created (ISO 8601, UTC).
Date and time the record was last changed (ISO 8601, UTC).