From ca7c58bcebe2fa2e6c2e3dfa875e0c52bed6f096 Mon Sep 17 00:00:00 2001 From: arebra Date: Fri, 29 Nov 2024 01:40:10 +0100 Subject: [PATCH] DEVP-494: Fixed metadata GET request --- _includes/metadata.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/_includes/metadata.md b/_includes/metadata.md index 4182b399e2..2f8c9e401d 100644 --- a/_includes/metadata.md +++ b/_includes/metadata.md @@ -72,11 +72,22 @@ Content-Type: application/json{% endcapture %} ## GET Request -{% capture request_header %}GET /psp/{{ api_resource }}/{% unless api_resource == "paymentorders" %}payments/{% endunless %}{{ page.payment_id }}/ HTTP/1.1 -Host: {{ page.api_host }} +{% if documentation_section contains "old-implementations/payment-instruments-v1" %} + +{% capture request_header %}GET /psp/{{ api_resource }}/payments/7e6cdfc3-1276-44e9-9992-7cf4419750e1/ HTTP/1.1 +Host: api.externalintegration.payex.com Authorization: Bearer Content-Type: application/json{% endcapture %} +{% else %} + +{% capture request_header %}GET /psp/paymentorders/7e6cdfc3-1276-44e9-9992-7cf4419750e1/ HTTP/1.1 +Host: api.externalintegration.payex.com +Authorization: Bearer +Content-Type: application/json{% endcapture %} + +{% endif %} + {% include code-example.html title='Request' header=request_header