{"openapi":"3.0.1","info":{"title":"Bluestone B2B Process","description":"Bluestone B2B Process API - Enables users to process their B2B services.\n <b><h1>Deprecated endpoints:</h1></b><table border=\"1px;\"><tr><th style=\"text-align: center; vertical-align: middle;\"><b><h3>Uri</b></h3></th><th><b>Method</b></th><th><b><h3>Since</h3></b></th><th><b><h3>End of life</h3></b></th></tr></table>","version":"1-apps"},"servers":[{"url":"api.test.bluestonepim.com/b2b-process","description":"Default Server URL"}],"tags":[{"name":"Punchout","description":"To process Punchout."}],"paths":{"/punchout/validate":{"post":{"tags":["Punchout"],"summary":"Validate Punchout.","operationId":"validatePunchout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PunchoutValidateRequest"}}},"required":true},"responses":{"200":{"description":"OK\n\nValidate Punchout successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PunchoutValidateResponse"}}}},"400":{"description":"Bad Request\n\nThis response indicates that the server could not understand the request due to invalid syntax. It is typically triggered by client-side input errors such as improperly formatted requests, missing required fields, or invalid data values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden"},"500":{"description":"Internal Server Error\n\nValidate Punchout error"}},"security":[{"oauth2":[]}]}},"/punchout/create-return":{"post":{"tags":["Punchout"],"summary":"Create return Punchout.","operationId":"createReturnPunchout","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PunchoutCreateReturnRequest"}}},"required":true},"responses":{"200":{"description":"OK\n\nCreate return Punchout successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PunchoutCreateReturnResponse"}}}},"400":{"description":"Bad Request\n\nThis response indicates that the server could not understand the request due to invalid syntax. It is typically triggered by client-side input errors such as improperly formatted requests, missing required fields, or invalid data values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden"},"404":{"description":"Not Found\n\nPunchout profile not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error\n\nCreate return Punchout error"}},"security":[{"oauth2":[]}]}}},"components":{"schemas":{"PunchoutValidateRequest":{"required":["ipAddress","objectId","returnUrl","userPassword","userUsername"],"type":"object","properties":{"objectId":{"title":"Punchout profile id.","minLength":1,"type":"string"},"userUsername":{"title":"Username.","minLength":1,"type":"string"},"userPassword":{"title":"User password.","minLength":1,"type":"string"},"basicAuthUsername":{"title":"Basic auth username.","type":"string"},"basicAuthPassword":{"title":"Basic auth password.","type":"string"},"ipAddress":{"title":"IP address.","minLength":1,"type":"string"},"returnUrl":{"title":"Return URL.","minLength":1,"type":"string"},"customizationId":{"title":"Customization id.","type":"string"}}},"PunchoutValidateResponse":{"type":"object","properties":{"objectId":{"title":"Punchout profile id","type":"string"},"customerId":{"title":"Customer id.","type":"string"},"customerName":{"title":"Customer name.","type":"string"},"customerOrganizationNumber":{"title":"Customer organization number.","type":"string"},"returnUrl":{"title":"Return URL.","type":"string"}}},"PunchoutCreateReturnRequest":{"required":["data","objectId","returnUrl"],"type":"object","properties":{"objectId":{"title":"Punchout profile id.","minLength":1,"type":"string"},"returnUrl":{"title":"Return URL.","minLength":1,"type":"string"},"data":{"title":"Based64 encoded of JSON basket data.","type":"string"}}},"ErrorResponse":{"type":"object","properties":{"status":{"title":"Error status code.","type":"integer","format":"int32"},"error":{"title":"General error description.","type":"string"},"errorDetails":{"title":"List of errors details.","type":"array","items":{"$ref":"#/components/schemas/ErrorDetails"}},"requestId":{"title":"Request ID used for logging.","type":"string"},"timestamp":{"title":"Error timestamp.","type":"integer","format":"int64"}}},"PunchoutCreateReturnResponse":{"required":["data","objectId"],"type":"object","properties":{"objectId":{"title":"Punchout profile id.","type":"string"},"data":{"title":"Based64 encoded of snippet form.","type":"string"}}},"ErrorDetails":{"type":"object","properties":{"message":{"title":"Error message.","type":"string"},"field":{"title":"Error related field.","type":"string"},"rejectedValue":{"title":"Invalid value causing error.","type":"string"}}}},"securitySchemes":{"oauth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://idp.test.bluestonepim.com/op/token","scopes":{"openid profile systemRoles permissions organization email name nickname":"All needed scopes."}}}}}},"x-amazon-apigateway-api-key-source":"AUTHORIZER"}