API 키 > 테스트 > API 개별 연동 키 > 시크릿 키 사용 Authorization 시 404 Not Found

2025-05-08릿가 9. ? ?

Request (curl):

curl --location 'https://api.tosspayments.com/v1/payments' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic *****************' \
--data '{
    "orderId": "03f3cc43-****-4e99-93ef-74cdcb3e444b",
    "orderName": "테스트 이용권",
    "amount": 3000,
    "method": "카드",
    "successUrl": "http://localhost:3001/payment/success?start=2025-05-11T16:00:00.000Z&end=2025-05-11T16:30:00.000Z",
    "failUrl": "http://localhost:3001/payment/fail?ticketPlanId=*********"
  }'


Response:

{
    "message": {
        "timestamp": "2025-05-09T02:32:24.162+00:00",
        "status": 404,
        "error": "Not Found",
        "path": "/v1/payments"
    }
}
Was this page helpful?