Developer Discussions

Ask a Question
Back to All

Getting [K004] Invalid endpoint error for `payments/v1/payment-tokens`

Hello Maya, is there a new endpoint for generating payment tokens aside from the one documented here? I'm experiencing the ff error whenever I invoke it withPOSTcommand

{
	"error": "Invalid endpoint. Please check if you are accessing the correct endpoint\/resource.",
	"code": "K004",
	"reference": "03b88f9b-97f3-499a-9a1d-8d649d818c28"
}

here is a sample payload

{
	"card": {
		"number": "2223000010239199",
		"expMonth": "12",
		"expYear": "2027",
		"cvc": "111"
	}
}

I'm also sure my header for Authorization is correct since I'm able to use it in other endpoints like Create Customerand Retrieve Customer