SDK reference · Python SDK
prov.authorize.issuer.merchants.put
prov.authorize.issuer.merchants.put in Python SDK. Create or replace the row for (program, domain).
Signature
prov.authorize.issuer.merchants.put(**body: Any = …) -> AnyParameters
**bodyAny
Request fields
program_idstringRequired- The program (
iprg_). domainstringRequired- The store's domain.
merchant_idsarray of strings- Acquirer merchant ids.
descriptorsarray of strings- Descriptor patterns (
*any run).
Returns
Any The row was replaced.
HTTP operation
POST /v1/authorize/issuer_merchants: Map a store to its merchant ids
Errors
- authentication_required
- insufficient_scope
- parameter_invalid
- parameter_missing
- plan_required
- rate_limit_exceeded
- resource_missing
Example
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_programs`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}),
})).json();
const program = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/authorize/issuer_merchants`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
body: JSON.stringify({
"program_id": program,
"domain": "brightbox.example",
"merchant_ids": [
"174030075991"
],
"descriptors": [
"BRIGHTBOX*"
]
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/authorize/issuer_programs", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"name": "Fernhill agent cards",
"processor": "lithic",
"mode": "live"
}).json()
program = step1["id"]
data = httpx.post(f"{api}/v1/authorize/issuer_merchants", headers={"Authorization": "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x"}, json={
"program_id": program,
"domain": "brightbox.example",
"merchant_ids": [
"174030075991"
],
"descriptors": [
"BRIGHTBOX*"
]
}).json()