feat(router): Move organization_id to request header from request body for v2 (#6277)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com>
This commit is contained in:
Anurag Thakur
2024-10-25 15:37:13 +05:30
committed by GitHub
parent e36ea184ae
commit aaac9aa97d
10 changed files with 101 additions and 29 deletions

View File

@ -173,15 +173,13 @@ Cypress.Commands.add(
.replaceAll(" ", "")
.toLowerCase();
// Update request body
merchantAccountCreateBody.organization_id = organization_id;
cy.request({
method: "POST",
url: url,
headers: {
"Content-Type": "application/json",
"api-key": api_key,
"X-Organization-Id": organization_id,
},
body: merchantAccountCreateBody,
failOnStatusCode: false,